<?php

namespace App\Models;

class Type extends Model
{
    protected $fillable = [
        'name', 'description', 'ordernum'
    ];

    public function products()
    {
        return $this->belongsToMany(Product::class, 'product_types', 'product_id', 'type_id');
    }
}
